package com.hspedu.enum_;

/**
 * @author yulian174
 * @version 1.0
 */
public class EnumMethod {
    public static void main(String[] args) {
        Weekend.play();
    }
}

interface IAAA {
    static void play() {
    }
}

enum Weekend implements IAAA {
    day1("Monday"), day2("Tuesday"), day3("Wednesday"),
    day4("Thursday"), day5("Friday"), day6("Saturday"), day7("Sunday");
    private String name;

    Weekend(String name) {
        this.name = name;
    }

    public String toString() {
        return "This is '" + name + "'";
    }

    public static void play() {
        Weekend[] arr = Weekend.values();
        for (Weekend n : arr) {
            System.out.println(n);
        }
    }

}

